﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Edit.Master" Inherits="System.Web.Mvc.ViewPage<DAL.SysPromise>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    操作权限
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        操作权限</h2>  
    <fieldset>
        <legend>
            <input type="submit" value="修改" />
            <input type="button" onclick="BackList('SysPromise')" value="返回列表" />
        </legend>
        <div class="bigdiv">
                 
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ActionName) %>
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.ActionName) %>
                <%: Html.ValidationMessageFor(model => model.ActionName) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ControllerName) %>
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.ControllerName) %>
                <%: Html.ValidationMessageFor(model => model.ControllerName) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Name) %>
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>        
            <div class="editor-label">
                <%: Html.LabelFor(model => model.State) %>
            </div>
            <div class="editor-field">
                <%=Html.DropDownListFor(model => model.State,App.Models.SysFieldsDDL.GetSysFields("SysPromise","State"),"请选择")%>  
            </div>  
        <div class="editor-label">
            <a class="anUnderLine" onclick="showModalMany('SysRoleId','../../SysRole');">
                <%: Html.LabelFor(model => model.SysRoleId) %>
            </a>
        </div>
        <div class="editor-field">
            <div id="checkSysRoleId">
                <% string ids12 = string.Empty;
                if(Model!=null)
                {
                   foreach (var item12 in Model.SysRole)
                   {
                       string item121 = string.Empty;
                       item121 += item12.Id + "&" + item12.Name;
                       if (ids12.Length > 0)
                       {
                           ids12 += "^" + item121;
                       }
                       else
                       {
                           ids12 += item121;
                       }
                %>
                <table id="<%: item121 %>"
                    class="deleteStyle">
                    <tr>
                        <td>
                            <img  alt="删除" title="点击删除" onclick="deleteTable('<%: item121 %>','SysRoleId');"  src="../../../Images/deleteimge.png" />
                        </td>
                        <td>
                            <%: item12.Name %>
                        </td>
                    </tr>
                </table>
                <%}}%>
                <input type="hidden" value="<%= ids12 %>" name="SysRoleIdOld" id="SysRoleIdOld" />
                <input type="hidden" value="<%= ids12 %>" name="SysRoleId" id="SysRoleId" />
            </div>
        </div>
        </div>
    </fieldset>  
    <%: Html.HiddenFor(model => model.Version) %>
    <%: Html.HiddenFor(model => model.CreateTime) %>
    <%: Html.HiddenFor(model => model.CreatePerson) %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">   
    <script type='text/javascript'>
        $(function () {      
            
        });
    </script>
</asp:Content>

